package com.yuyou.tas.feedback.mapper;

import com.yuyou.tas.service.api.feedback.entity.FeedbackNote;
import com.yuyou.tas.service.api.feedback.vo.resp.FeedbackNoteMoreVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FeedbackNoteMapper {
    int deleteByPrimaryKey(Long id);

    int insert(FeedbackNote record);

    FeedbackNote selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(FeedbackNote record);

    Integer getMaxSort(@Param(value = "feedbackClassId") Long feedbackClassId);


    List<FeedbackNote> findNoteByFeedbackClassId(Long feedbackClassId);

    List<FeedbackNoteMoreVo> findByFeedClassId(@Param(value = "feedbackClassId") Long feedbackClassId);

    void delByFeedbackClass(@Param(value = "feedbackClassId")Long feedbackClassId);

    List<FeedbackNote> findAllNeedOperate();
}